package com.hqyj.crmdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 何万林
 * @since 2022-10-17
 */
@TableName("customer_loss")
@ApiModel(value = "CustomerLoss对象", description = "")
public class CustomerLoss implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("流失编号")
    @TableId(value = "loss_id", type = IdType.AUTO)
    private Integer lossId;

    @ApiModelProperty("客户名称")
    private String lossName;

    @ApiModelProperty("客户经理")
    private String lossManager;

    @ApiModelProperty("上次下单时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate lossLastdate;

    @ApiModelProperty("暂缓流失措施")
    private String lossMeasure;

    @ApiModelProperty("确认流失原因")
    private String lossReason;

    @ApiModelProperty("确认流失时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate lossDate;

    @ApiModelProperty("状态")
    private String lossState;

    public Integer getLossId() {
        return lossId;
    }

    public void setLossId(Integer lossId) {
        this.lossId = lossId;
    }

    public String getLossName() {
        return lossName;
    }

    public void setLossName(String lossName) {
        this.lossName = lossName;
    }

    public String getLossManager() {
        return lossManager;
    }

    public void setLossManager(String lossManager) {
        this.lossManager = lossManager;
    }

    public LocalDate getLossLastdate() {
        return lossLastdate;
    }

    public void setLossLastdate(LocalDate lossLastdate) {
        this.lossLastdate = lossLastdate;
    }

    public String getLossMeasure() {
        return lossMeasure;
    }

    public void setLossMeasure(String lossMeasure) {
        this.lossMeasure = lossMeasure;
    }

    public String getLossReason() {
        return lossReason;
    }

    public void setLossReason(String lossReason) {
        this.lossReason = lossReason;
    }

    public LocalDate getLossDate() {
        return lossDate;
    }

    public void setLossDate(LocalDate lossDate) {
        this.lossDate = lossDate;
    }

    public String getLossState() {
        return lossState;
    }

    public void setLossState(String lossState) {
        this.lossState = lossState;
    }

    @Override
    public String toString() {
        return "CustomerLoss{" +
            "lossId = " + lossId +
            ", lossName = " + lossName +
            ", lossManager = " + lossManager +
            ", lossLastdate = " + lossLastdate +
            ", lossMeasure = " + lossMeasure +
            ", lossReason = " + lossReason +
            ", lossDate = " + lossDate +
            ", lossState = " + lossState +
        "}";
    }
}
